<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
<head>

    <meta charset="UTF-8">
    <title>慧运车结算系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="<%=path%>/plugins/layui/css/layui.css" type="text/css" rel="stylesheet" />
    <link href="<%=path%>/plugins/font-awesome/css/font-awesome.min.css" type="text/css" rel="stylesheet">
    <link href="<%=path%>/css/index.css" type="text/css" rel="stylesheet" />
    <script src="<%=path%>/js/rootpath.js" type="text/javascript"></script>
    <script src="<%=path%>/plugins/layui/layui.js" type="text/javascript"></script>
    <script src="<%=path%>/js/jquery/jquery-2.1.4.min.js" type="text/javascript"></script>
    <script src="<%=path%>/layer/2.4/layer.js" type="text/javascript"></script>
    <script src="<%=path%>/angular/angular.min.js" type="text/javascript"></script>
    <script src="<%=path%>/angular-animate/angular-animate.min.js" type="text/javascript"></script>
    <script src="<%=path%>/angular-ui-router/angular-ui-router.min.js" type="text/javascript"></script>
    <script src="<%=path%>/angular-strap/angular-strap.min.js" type="text/javascript"></script>
    <script src="<%=path%>/angular-strap/angular-strap.tpl.min.js" type="text/javascript"></script>
    <script src="<%=path%>/js/main.js" type="text/javascript"></script>
    <style type="text/css">
        .hyc-admin-nav-right-header {
            position: absolute;
            right: 0;
            top: 0;
            padding: 0;
            background: none;
            padding-right: 20px;
        }
        .hyc-admin-nav-left-header {
            position: absolute;
            top: 0;
            padding: 0;
            background: none;
            left: 220px;
            width: 60%;
        }
    </style>
</head>

<body ng-app="salesApp">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header header">
        <div class="layui-main" style="margin: 0;">
            <a href="javascript:;">
                <img src="<%=path%>/images/huiyunche-logo-white.gif" style="width: 115px; padding-left: 40px;">
            </a>
            <ul class="layui-nav hyc-admin-nav-left-header" lay-filter="nav_left_menu">
                <li class="layui-nav-item">
                    <a href="javascript:;">首页</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">结算管理</a>
                </li>

            </ul>
            <ul class="layui-nav hyc-admin-nav-right-header" lay-filter="nav_right_menu">
                <li class="layui-nav-item">
                    <a href="javascript:;" title="用户">
                        <i class="fa fa-user"></i>
                        ${username}
                    </a>
                </li>

                <li class="layui-nav-item">
                    <a href="logout" title="退出">
                        <i class="fa fa-sign-out"></i>
                    </a>
                </li>
            </ul>
        </div>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree">

                <li class="layui-nav-item layui-nav-itemed">
                    <a href="javascript:;">账单管理</a>
                    <dl class="layui-nav-child">
                        <dd class="">
                            <a href="javascript:;" ng-click="active.tabAdd('20', '应收账单管理', '内容16', 'receivable')">应收账单管理</a>
                        </dd>
                        <dd class="">
                            <a href="javascript:;" ng-click="active.tabAdd('24', '应付账单管理', '内容20', 'payable')">应付账单管理</a>
                        </dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a href="javascript:;">收付款管理</a>
                    <dl class="layui-nav-child">
                        <dd class="">
                            <a href="javascript:;" ng-click="active.tabAdd('28', '收款确认', '内容16', 'proceedManage')">收款确认</a>
                        </dd>
                        <dd class="">
                            <a href="javascript:;" ng-click="active.tabAdd('30', '付款确认', '内容20', 'paymentManage')">付款确认</a>
                        </dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a href="javascript:;">价格调整</a>
                    <dl class="layui-nav-child">
                        <dd class="">
                            <a href="javascript:;" ng-click="active.tabAdd('32', '订单价格调整', '内容32', 'orderPrice')">订单价格调整</a>
                        </dd>
                    </dl>
                    <dl class="layui-nav-child">
                        <dd class="">
                            <a href="javascript:;" ng-click="active.tabAdd('33', '运单价格调整', '内容33', 'wayBillPrice')">运单价格调整</a>
                        </dd>
                    </dl>
                </li>
                    <li class="layui-nav-item layui-nav-itemed">
                        <a href="javascript:;">现金收款管理</a>
                        <dl class="layui-nav-child">
                            <dd class="">
                                <a href="javascript:;" ng-click="active.tabAdd('34', '销售收款审核', '内容34', 'receiptAudit')">销售收款审核</a>
                            </dd>
                        </dl>
                    </li>
            </ul>
        </div>
    </div>
    <div class="layui-body">
        <div class="layui-tab" lay-filter="tab_demo" style="margin-top: 2px;">
            <ul class="layui-tab-title" style="left: 2px;">
                <li class="layui-this" lay-id="11">
                    <span id="11" ui-sref="index">首页</span>
                    <i class="layui-icon layui-unselect layui-tab-close"></i>
                </li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <div ui-view></div>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-footer footer">
        <div class="layui-main">

        </div>
    </div>
    <div class='loading-mask' id="bigImage" onclick="hideImage()"></div>
    <div class="loading" id="bigImage1" onclick="hideImage()">
        <div class="loading-indicator" id="bigImage2">
            <img src=""/>
        </div>
    </div>
    <script type="text/javascript">
        function hideImage() {
            $("div[id*='bigImage']").each(function () {
                $(this).removeClass('checked');
            });
            $("div[id='bigImage2']").find('img').removeAttr('src');
        }
    </script>
    <script type="text/javascript">
        var path = "<%=path%>";
    </script>
    <script src="<%=path%>/art-template/template.js" type="text/javascript"></script>
    <script src="<%=path%>/firefly-template/firefly-template.min.js" type="text/javascript"></script>
    <script src="<%=path%>/underscore/underscore-min.js" type="text/javascript"></script>
    <script src="<%=path%>/js/sales-config.js" type="text/javascript"></script>
    <script src="<%=path%>/js/sales-service.js" type="text/javascript"></script>
    <script src="<%=path%>/js/sales-controllers.js" type="text/javascript"></script>
    <script src="<%=path%>/js/sales-tools.js" type="text/javascript"></script>
    <script src="<%=path%>/js/payable/payable.js" type="text/javascript"></script>
    <script src="<%=path%>/js/payable/confirmBill.js" type="text/javascript"></script>
    <script src="<%=path%>/js/payable/generateBill.js" type="text/javascript"></script>
    <script src="<%=path%>/js/payable/newBill.js" type="text/javascript"></script>
    <script src="<%=path%>/js/receivable/receivable.js" type="text/javascript"></script>
    <script src="<%=path%>/js/receivable/confirmBill.js" type="text/javascript"></script>
    <script src="<%=path%>/js/receivable/generateBill.js" type="text/javascript"></script>
    <script src="<%=path%>/js/receivable/newBill.js" type="text/javascript"></script>
    <script src="<%=path%>/js/proceed/proceed.js" type="text/javascript"></script>
    <script src="<%=path%>/js/proceed/proceedManage.js" type="text/javascript"></script>
    <script src="<%=path%>/js/payment/payment.js" type="text/javascript"></script>
    <script src="<%=path%>/js/payment/paymentManage.js" type="text/javascript"></script>
    <script src="<%=path%>/js/adjust/orderPrice.js" type="text/javascript"></script>
    <script src="<%=path%>/js/adjust/wayBillPrice.js" type="text/javascript"></script>
    <script src="<%=path%>/js/audit/receiptAuditList.js" type="text/javascript"></script>

</div>
<script type="text/javascript">
    layui.use('element', function(){
        var element = layui.element(); //导航的hover效果、二级菜单等功能，需要依赖element模块

        //监听导航点击
        element.on('nav(demo)', function(elem){
            //console.log(elem)
            layer.msg(elem.text());
        });
        element.init();

    });
</script>
</body>
</html>